import matplotlib.pyplot as plt

from sklearn.datasets import load_boston

dataset = load_boston()
x_data = dataset.data # 导入所有特征变量
y_data = dataset.target # 导入目标值（房价）
name_data = dataset.feature_names #导入特征名


for i in range(13):
    plt.subplot(2,7,i+1)
    x=x_data[:,i]
    y=y_data[:]
    plt.scatter(x,y)
    plt.title(name_data[i])
plt.show()

    
